<?php
$titre_page="Dictionnaire russe-français: modifier un enregistrement";
include("header.inc.php");
$id=$_GET['id'];
$foreign=$_GET['foreign'];
$local=$_GET['local'];
$type=$_GET['type'];
$date=$_GET['date'];

$sql = "UPDATE `" .$latable ."` 
SET `foreign` = '" .$foreign ."',
`local` = '" .$local ."',
`type` = '" .$type ."',
`date` = NOW( )
WHERE `id` = '" .$id ."'"; 


#echo $sql; exit;
$sqlQ=mysql_query($sql);
if(!$sqlQ) {
echo "Error SQL : " .$sql ."<br>" .mysql_error();
} else {
	echo "L'enregistrement a été modifié<br><a href=\"dictionnary.php\">Retour</a>";
	echo '<meta http-equiv="refresh" content="5;URL=dictionnary.php">';
}

include("footer.inc.php");
?>